﻿<UserControl x:Class="VH.View.CustomerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:resources="clr-namespace:VH.Resources;assembly=VH.Resources" xmlns:view="clr-namespace:VH.View"
             xmlns:converters="clr-namespace:VH.View.Converters"
             xmlns:controls="clr-namespace:VH.UI.UserControls.Controls;assembly=VH.UI.UserControls"
             xmlns:userControls="clr-namespace:VH.UI.UserControls;assembly=VH.UI.UserControls"
             xmlns:helper="clr-namespace:VH.UI.UserControls.Helper;assembly=VH.UI.UserControls"
             x:Name="customerPage"
             mc:Ignorable="d">
    <AdornerDecorator>
        <Grid>
            <Grid.Resources>
                <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
            </Grid.Resources>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <!--<RowDefinition Height="3" />-->
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="3" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="3" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="3" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="3" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <userControls:ModernButton
                    ControlHeight="30"
                    ControlWidth="30"
                    IconWidth="20"
                    IconHeight="20"
                    IconData="M58.426987,51.136993L58.426987,56.713917 52.846996,56.713917 52.846996,60.04208 58.426987,60.04208 58.426987,65.619003 61.747982,65.619003 61.747982,60.04208 67.328972,60.04208 67.328972,56.713917 61.747982,56.713917 61.747982,51.136993z M59.805508,45.766998C66.714226,45.766998 72.314003,51.367195 72.314003,58.2775 72.314003,65.187805 66.714226,70.788002 59.805508,70.788002 52.896793,70.788002 47.295002,65.187805 47.294998,58.2775 47.295002,51.367195 52.896793,45.766998 59.805508,45.766998z M43.435337,41.559002C45.846127,42.012074,48.092121,42.932522,50.075317,44.222675L50.291,44.369598 49.724449,44.772896C45.611343,47.851669 42.944286,52.761391 42.944286,58.277496 42.944286,61.183834 43.683086,63.920246 44.982662,66.309113L45.344173,66.936996 0,66.936996 0,59.727215C3.651657E-07,50.767509,6.3750052,43.294724,14.836051,41.599403L28.48469,62.994255z M28.724018,38.875L32.211212,42.364719 29.501507,45.074493 32.298218,48.314873 28.597633,59.404999 24.785166,48.442436 27.905985,45.034565 25.234169,42.364719z M24.189264,8.5674067C22.366358,8.5628319 20.068054,9.0320854 19.798653,11.369952 19.798653,11.369953 19.798653,15.912552 18.586203,16.518812L18.285267,20.758326 17.072731,19.546839 17.526289,25.300926 19.798653,25.45372C19.798653,25.45372 20.405006,37.112186 31.459673,34.842007 31.459673,34.842007 36.759148,33.175846 37.969444,25.45372L39.788334,25.300926 40.24189,20.152065 39.485153,20.304686C39.485153,20.304686,39.029358,15.912552,38.575798,14.096012L38.272617,9.7048264C38.272617,9.7048264 35.699238,7.5840797 31.913319,9.401741 31.913319,9.401741 27.521044,9.2491188 26.461218,8.7954788 26.461218,8.7954788 25.436518,8.5705338 24.189264,8.5674067z M29.371685,5.1757579E-08C34.534134,-0.00043466639 38.121841,2.7377131 38.121841,2.7377138 44.784336,8.038105 41.151077,17.124357 41.151077,17.124357 42.664532,18.032572 42.514153,18.789284 42.514153,18.789284 42.514153,28.633457 39.78809,27.87554 39.78809,27.87554 38.272388,34.235779 32.368954,37.112167 32.368954,37.112167 20.858524,39.989769 17.982168,28.027123 17.982168,28.027123 15.559195,27.724039 15.256107,22.121548 15.256107,22.121548 14.49705,18.335737 16.619095,16.821192 16.619095,16.821192 12.074248,6.2215958 20.252352,3.0420001 20.252352,3.0420003 23.531332,0.75185418 26.667543,0.00022527624 29.371685,5.1757579E-08z"
                    Margin="15,0,0,10"
                    ToolTip="{x:Static resources:TooltipResources.AddCustomer}"
                    Command="{Binding AddCommand}" />
                
                <userControls:ModernButton
                    Grid.Column="2"
                    ControlHeight="30"
                    ControlWidth="30"
                    IconWidth="20"
                    IconHeight="20"
                    IconData="M59.868504,51.691342C56.992623,51.671343 54.647717,53.991297 54.630719,56.861238 54.610718,59.741182 56.927624,62.081135 59.798504,62.101135 62.676388,62.121134 65.021286,59.81118 65.039292,56.931238 65.057289,54.061296 62.742382,51.711343 59.868504,51.691342z M59.914502,44.33149C61.002457,44.33149,62.054413,44.501487,63.05737,44.761481L63.472355,47.511427C64.487313,47.911418,65.424271,48.451407,66.248238,49.131394L68.851128,48.151414C70.315071,49.661384,71.394028,51.531346,71.956002,53.621305L69.776093,55.361269C69.857087,55.881258 69.910088,56.421247 69.905091,56.961237 69.899086,57.511227 69.842087,58.041216 69.755097,58.561205L71.914002,60.331169C71.323029,62.411129,70.220078,64.271091,68.738137,65.761061L66.149247,64.741081C65.315277,65.411068,64.370316,65.941057,63.35336,66.331049L62.901379,69.070995C61.893418,69.33099 60.841462,69.470987 59.754506,69.470987 58.664551,69.460987 57.614594,69.300991 56.607636,69.030996L56.196656,66.281052C55.182698,65.891058,54.242733,65.34107,53.41877,64.661083L50.815876,65.641064C49.353936,64.141094,48.27298,62.261131,47.709004,60.171173L49.890915,58.441208C49.810917,57.911219 49.758919,57.381229 49.761921,56.83124 49.767918,56.29125 49.824917,55.751261 49.911915,55.231272L47.753003,53.471308C48.341977,51.381349,49.446934,49.531386,50.927872,48.031416L53.519764,49.051396C54.351731,48.381409,55.297692,47.851419,56.316651,47.471427L56.76363,44.721482C57.77359,44.471487,58.825547,44.32149,59.914502,44.33149z M28.723826,40.102001L32.210999,43.591722 29.501309,46.301496 32.298001,49.541877 28.597441,60.632002 24.785,49.669442 27.905798,46.26157 25.234,43.591722z M43.434994,39.726002C46.113629,40.229414,48.588814,41.309835,50.726117,42.833285L50.756001,42.855556 50.55254,42.986167C46.066414,46.020536 43.110947,51.155067 43.110947,56.961494 43.110947,59.867832 43.849812,62.604244 45.149445,64.993111L45.213295,65.104002 0,65.104002 0,57.894215C3.4764827E-07,48.934511,6.3749546,41.461725,14.835934,39.766404L28.484465,61.161257z M24.189103,8.5674076C22.366207,8.5628357 20.067921,9.0320892 19.798519,11.369957 19.798519,11.369957 19.798519,15.912556 18.586079,16.518816L18.285145,20.758329 17.072617,19.546843 17.526173,25.30093 19.798519,25.453723C19.798519,25.453723 20.404869,37.112191 31.459462,34.84201 31.459462,34.84201 36.758904,33.175849 37.969189,25.453723L39.788067,25.30093 40.241619,20.152069 39.48489,20.304689C39.48489,20.304689,39.029095,15.912556,38.575539,14.096018L38.272362,9.7048302C38.272362,9.7048302 35.698998,7.5840836 31.913103,9.4017429 31.913103,9.4017429 27.520859,9.2491226 26.461041,8.7954826 26.461041,8.7954826 25.436346,8.5705357 24.189103,8.5674076z M29.371485,0C34.533902,-0.00043106079 38.121586,2.7377167 38.121586,2.7377167 44.784035,8.0381088 41.150803,17.124361 41.150803,17.124361 42.664246,18.032576 42.513867,18.789288 42.513867,18.789288 42.513867,28.633461 39.787823,27.875544 39.787823,27.875543 38.272133,34.235782 32.368737,37.112171 32.368737,37.112172 20.858385,39.989773 17.982048,28.027124 17.982048,28.027124 15.55909,27.724045 15.256005,22.121552 15.256005,22.121552 14.496954,18.335741 16.618985,16.821196 16.618985,16.821196 12.074168,6.2215996 20.252217,3.0420036 20.252217,3.0420036 23.531174,0.75185776 26.667364,0.00022888184 29.371485,0z"
                    Margin="0,0,0,10"
                    ToolTip="{x:Static resources:TooltipResources.EditCustomer}"
                    Command="{Binding EditCommand}" />

                <userControls:ModernButton
                    Grid.Column="4"
                    ControlHeight="30"
                    ControlWidth="30"
                    IconWidth="20"
                    IconHeight="20"
                    IconData="M52.848011,56.386982L52.848011,60.374981 67.330009,60.374981 67.330009,56.386982z M59.806004,45.766998C66.714996,45.766998 72.315002,51.367195 72.315002,58.2775 72.315002,65.187805 66.714996,70.788002 59.806004,70.788002 52.897011,70.788002 47.296001,65.187805 47.296001,58.2775 47.296001,51.367195 52.897011,45.766998 59.806004,45.766998z M43.435444,41.558998C45.846233,42.01207,48.092236,42.932518,50.075436,44.222675L50.291,44.369518 49.724358,44.772896C45.611366,47.851669 42.944382,52.761391 42.944382,58.277496 42.944382,61.183834 43.683159,63.920246 44.9827,66.309113L45.3442,66.936996 0,66.936996 0,59.727215C3.6516658E-07,50.767509,6.3750205,43.294723,14.836087,41.599403L28.484758,62.994255z M28.724087,38.875L32.211292,42.364719 29.501577,45.074493 32.298294,48.314873 28.597702,59.404999 24.785225,48.442436 27.906052,45.034569 25.234228,42.364719z M24.189322,8.5674057C22.366411,8.5628318 20.068104,9.0320854 19.798698,11.369953 19.798698,11.369953 19.798698,15.912552 18.586246,16.518812L18.285311,20.758326 17.072771,19.546839 17.526331,25.300926 19.798698,25.45372C19.798698,25.45372 20.405054,37.112186 31.459747,34.842007 31.459747,34.842007 36.759235,33.175846 37.969532,25.45372L39.788429,25.300926 40.241985,20.152065 39.485249,20.304686C39.485249,20.304686,39.029449,15.912552,38.57589,14.096012L38.272709,9.7048254C38.272709,9.7048263 35.699322,7.5840792 31.913395,9.401741 31.913395,9.401741 27.521109,9.2491188 26.461281,8.7954788 26.461281,8.7954788 25.436577,8.5705337 24.189322,8.5674057z M29.371754,5.1915517E-08C34.534214,-0.00043532902 38.121933,2.7377123 38.121933,2.7377128 44.784443,8.038105 41.151176,17.124357 41.151176,17.124357 42.664635,18.032572 42.514252,18.789284 42.514252,18.789284 42.514252,28.633457 39.788185,27.87554 39.788185,27.87554 38.27248,34.235779 32.36903,37.112167 32.36903,37.112167 20.858574,39.989769 17.982212,28.027122 17.982212,28.027122 15.559232,27.724039 15.256145,22.121548 15.256145,22.121548 14.497086,18.335737 16.619135,16.821192 16.619135,16.821192 12.074278,6.2215953 20.252399,3.0419993 20.252399,3.0419993 23.531387,0.75185349 26.667606,0.0002246136 29.371754,5.1915517E-08z"
                    Margin="0,0,0,10"
                    ToolTip="{x:Static resources:TooltipResources.DeleteCustomer}"
                    Command="{Binding DeleteCommand}"/>

                <userControls:ModernButton
                    Grid.Column="6"
                    ControlHeight="30"
                    ControlWidth="30"
                    IconWidth="20"
                    IconHeight="20"
                    IconData="M20.449749,20.277999 C18.796769,21.435999 16.863793,22.016999 14.886817,21.989999 14.625821,21.986999 14.365824,21.973999 14.109827,21.950999 14.004828,21.940999 13.899829,21.923999 13.794831,21.910999 13.592833,21.883999 13.390836,21.856999 13.193838,21.818999 13.07284,21.795999 12.953841,21.764999 12.834843,21.736999 12.641845,21.691999 12.449847,21.645999 12.26185,21.589999 12.170851,21.561999 12.082852,21.529999 11.992853,21.499999 11.775856,21.426999 11.559858,21.351999&#xd;&#xa;11.349861,21.263999 11.301861,21.244999 11.255862,21.221999 11.208862,21.200999 10.962866,21.092999 10.719868,20.978999 10.484871,20.851999 10.473872,20.845999 10.463872,20.840999 10.452872,20.834999 9.6578815,20.397999 8.9298904,19.852999 8.2918983,19.215999 8.2818984,19.205999 8.2718985,19.193999 8.2608987,19.182999 8.0629011,18.983999 7.8739034,18.775999 7.6939056,18.558999 7.6559061,18.512999 7.6199065,18.462999 7.581907,18.415999 6.2829229,16.790999&#xd;&#xa;5.4999325,14.734 5.4999325,12.497 L7.9999019,12.497 3.9999509,6.497 0,12.497 2.4999693,12.497 C2.4999693,15.126999 3.3199593,17.564999 4.7129422,19.580999 4.729942,19.608999 4.7419418,19.638999 4.7609416,19.666999 4.9049398,19.872999 5.0649379,20.062999 5.219936,20.257999 5.2779352,20.331999 5.3319346,20.407999 5.3919338,20.479999 5.6199311,20.756999 5.8619281,21.016999 6.110925,21.270999 6.1349247,21.295999 6.1569245,21.320999 6.1799242,21.343999 7.0159139,22.180999 7.9609023,22.885999 8.9888897,23.449999 9.0158894,23.465999 9.0428891,23.481999&#xd;&#xa;9.0718887,23.496999 9.3678851,23.655999 9.6718813,23.799999 9.9808775,23.935999 10.057877,23.968999 10.132876,24.005999 10.210875,24.038999 10.474871,24.147999 10.745868,24.243999 11.018865,24.334999 11.147863,24.378999 11.275862,24.423999 11.40686,24.463999 11.645857,24.534999 11.889854,24.593999 12.135851,24.651999 12.298849,24.689999 12.460847,24.730999 12.626845,24.762999 12.695844,24.776999 12.760843,24.797999 12.828843,24.808999 13.06084,24.849999&#xd;&#xa;13.293837,24.872999 13.525834,24.900999 13.609833,24.910999 13.691832,24.924999 13.775831,24.933999 14.192826,24.974999 14.608821,25.001999 15.023816,25.001999 17.564785,25.001999 20.043754,24.224999 22.170728,22.734999 22.84872,22.258999 23.013718,21.324999 22.538723,20.645999 22.062729,19.965999 21.126741,19.801999 20.449749,20.277999 M27.501023,12.496999 C27.500023,9.8749991 26.685032,7.4419993 25.299045,5.4299995 25.279046,5.3959995 25.265046,5.3609995 25.242046,5.3289995 25.070048,5.0829996 24.88205,4.8539996 24.695051,4.6239996 24.673052,4.5959996 24.653052,4.5669996 24.630052,4.5389996 23.362065,2.9999997 21.769081,1.8109998 19.964099,1.0339999 19.914099,1.0119999 19.8651,0.98799992 19.8151,0.96699992 19.527103,0.84799993 19.232106,0.74299994 18.935109,0.64399995 18.82811,0.60899995 18.723111,0.56999996&#xd;&#xa;18.614112,0.53799996 18.355115,0.45999997 18.093117,0.39599997 17.82812,0.33499998 17.682122,0.30099998 17.536123,0.26399999 17.388124,0.23499999 17.315125,0.22099999 17.246126,0.19899999 17.174127,0.18599999 16.976129,0.152 16.778131,0.137 16.580133,0.111 16.443134,0.094000001 16.309135,0.073000003 16.171137,0.059000004 15.83914,0.028000007 15.509143,0.015000008 15.179147,0.0090000084 15.119147,0.0090000084 15.061148,9.1552508E-09 15.001148,9.1552508E-09 14.990148,9.1552508E-09&#xd;&#xa;14.980149,0.0030000089 14.969149,0.0040000088 12.431174,0.0060000086 9.9571988,0.77199994 7.83322,2.2599998 7.1542268,2.7349998 6.9892285,3.6699997 7.4642237,4.3489996 7.938219,5.0279996 8.8752096,5.1929995 9.5532028,4.7169996 11.194186,3.5679997 13.108167,2.9859997 15.071148,3.0039997 15.353145,3.0059997 15.631142,3.0199997 15.906139,3.0459997 15.990138,3.0549997 16.074138,3.0679997 16.158137,3.0779997 16.384135,3.1059997 16.608132,3.1379997 16.82813,3.1809997&#xd;&#xa;16.926129,3.1999997 17.022128,3.2249997 17.117127,3.2469997 17.334125,3.2959997 17.550123,3.3479997 17.761121,3.4119997 17.82812,3.4329997 17.894119,3.4569997 17.961119,3.4789997 18.202116,3.5579997 18.440114,3.6429997 18.673112,3.7399997 18.697111,3.7499997 18.721111,3.7619997 18.744111,3.7719997 20.142097,4.3729996 21.368085,5.2989995 22.325075,6.4569994 22.331075,6.4639994 22.337075,6.4729994 22.343075,6.4799994 23.689061,8.1189993 24.500053,10.214999&#xd;&#xa;24.501053,12.496999 L22.000078,12.496999 26.001038,18.496998 29.999998,12.496999 z"
                    Margin="0,0,0,10"
                    ToolTip="{x:Static resources:TooltipResources.RefreshCustomer}"
                    Command="{Binding RefreshCommand}"/>

                <userControls:ModernButton
                    Grid.Column="8"
                    ControlHeight="30"
                    ControlWidth="30"
                    IconWidth="20"
                    IconHeight="20"
                    IconData="M8.7139998,35.064L27.108,35.064 27.108,37.726998 8.7139998,37.726998z M8.7139998,28.418999L20.903999,28.418999 20.903999,31.077 8.7139998,31.077z M20.437819,13.65L25.973,18.895532 18.167,21.591z M29.105799,3.574L35.007,9.0182717 27.724232,16.911999 27.601828,15.664531 25.656441,15.001693 25.599159,13.67742 23.664192,13.165692 23.428524,11.672108 21.823,11.466397z M14.322772,3.4320003L26.465963,3.4320003 23.150892,6.9789109 15.700359,6.9789109 15.700359,12.916528C15.700359,12.916528,15.549361,18.036388,9.8462821,17.591081L3.5442484,17.617083 3.5442484,41.038552C3.5442484,41.528855,3.9413749,41.92466,4.4296509,41.92466L29.247139,41.92466C29.736734,41.92466,30.13253,41.528855,30.13253,41.038552L30.13253,17.038276 33.681999,13.460835 33.681999,41.038552C33.681999,43.486577,31.700216,45.469002,29.247139,45.469002L4.4296509,45.469002C1.9817624,45.469002,8.71878E-08,43.486577,0,41.038552L0,18.544193 3.5442484,14.80455 3.5442484,14.833151 10.984302,6.9789109 10.962102,6.9789109z M33.154091,0.0010778904C33.416405,0.011748075,33.661049,0.10176969,33.851479,0.27656603L38.027401,4.1333629C38.539116,4.599481,38.470112,5.4991968,37.881497,6.1359136L37.080772,7.0070002 31.061001,1.453685 31.864424,0.58387709C32.230621,0.18592978,32.7169,-0.016706228,33.154091,0.0010778904z"
                    Margin="0,0,0,10"
                    ToolTip="{x:Static resources:TooltipResources.AddAppointment}"
                    Command="{Binding AddAppointmentCommand}" />
            </Grid>

            <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <controls:ProgressIndicator
                    ProgressColour="{StaticResource AccentColorBlueBrush}"
                    Height="6"
                    Width="600" Margin="0,0,0,10"
                    Visibility="{Binding Path=DataContext.ShowProgressBar, ElementName=customerPage, Converter={StaticResource BooleanToVisibilityConverter}}" />
                <DataGrid
                    Grid.Row="1"
                    ItemsSource="{Binding Entity.ObservableList}"
                    AutoGenerateColumns="False"
                    IsReadOnly="True"
                    SelectionMode="Extended"
                    view:VHAttachedProperties.OnDoubleClick="{Binding CustomerDoubleClick}">
                    <DataGrid.Resources>
                        <helper:BindingProxy x:Key="proxy" Data="{Binding DataContext, ElementName=customerPage}" />
                    </DataGrid.Resources>

                    <DataGrid.ItemContainerStyle>
                        <Style TargetType="{x:Type DataGridRow}">
                            <Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}" />
                            <Setter Property="ContextMenu">
                                <Setter.Value>
                                    <ContextMenu>
                                        <MenuItem Header="{x:Static resources:TooltipResources.Edit}"  Command="{Binding Source={StaticResource proxy}, Path=Data.EditCommand}"/>
                                        <MenuItem Header="{x:Static resources:TooltipResources.Delete}" Command="{Binding Source={StaticResource proxy}, Path=Data.DeleteCommand}"/>
                                    </ContextMenu>
                                </Setter.Value>
                            </Setter>
                            <Style.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="FontWeight" Value="Bold" />
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </DataGrid.ItemContainerStyle>

                    <DataGrid.Columns>
                        <DataGridTextColumn
                            MinWidth="140"
                            Header="{x:Static  resources:LabelResources.GridFormattedName}"
                            Binding="{Binding FormattedName}" ElementStyle="{StaticResource DataGridTextStyle}" />
                        <DataGridTextColumn
                            MinWidth="50"
                            Header="{x:Static  resources:LabelResources.GridGender}" Binding="{Binding Gender}"
                            ElementStyle="{StaticResource DataGridTextStyle}" />
                        <DataGridTextColumn
                            MinWidth="250"
                            Header="{x:Static  resources:LabelResources.GridAddress}"
                            Binding="{Binding FirstOrDefaultAddress.Address}"
                            ElementStyle="{StaticResource DataGridTextStyle}" >
                            <DataGridTextColumn.CellStyle>
                                <Style TargetType="DataGridCell">
                                    <Setter Property="ToolTip" Value="{Binding ConcatenatedAddress}" />
                                </Style>
                            </DataGridTextColumn.CellStyle>
                        </DataGridTextColumn>
                        <DataGridTextColumn
                            MinWidth="100"
                            Header="{x:Static  resources:LabelResources.GridPhoneNumber}"
                            Binding="{Binding ConcatenatedPhone}"
                            ElementStyle="{StaticResource DataGridTextStyle}" >
                            <DataGridTextColumn.CellStyle>
                            <Style TargetType="DataGridCell">
                                    <Setter Property="ToolTip" Value="{Binding ConcatenatedPhone}" />
                            </Style>
                            </DataGridTextColumn.CellStyle>
                        </DataGridTextColumn>
                        <DataGridTextColumn
                            MinWidth="150"
                            Header="{x:Static  resources:LabelResources.GridEmail}"
                            Binding="{Binding Email}" ElementStyle="{StaticResource DataGridTextStyle}" />
                        <DataGridTextColumn
                            MinWidth="60"
                            Header="{x:Static  resources:LabelResources.GridDOB}"
                            Binding="{Binding DOB, StringFormat=d}" ElementStyle="{StaticResource DataGridTextStyle}" />

                    </DataGrid.Columns>
                </DataGrid>
            </Grid>

            <Rectangle
                Grid.RowSpan="3"
                Opacity="0.1"
                Fill="{StaticResource AccentColorLightBlueBrush}"
                Visibility="{Binding ChildViewModel, Converter={converters:NullObjectToVisibiltyConverter}}" />
            <userControls:ModalDailogWindow
                Grid.RowSpan="3"
                view:VHAttachedProperties.ModelDialogContent="{Binding ChildViewModel}"
                ViewMode="{Binding ChildViewModel.ViewMode}"
                IsActive="{Binding ChildViewModel.IsActive}"
                Visibility="{Binding ChildViewModel, Converter={converters:NullObjectToVisibiltyConverter}}" />
        </Grid>
    </AdornerDecorator>
</UserControl>
